//*****************************************************************************
//
// ABEC3 data file
// Project: SP38 Mesh-Files
//
//*****************************************************************************

// This example is similar to SP38
// but geometry is imported from CAD
// via STEP and GMESH

// Note, there is no IB for floor reflections


Control_Solver
  f1=20;  f2=500;  NumFrequencies=30;  Abscissa=log;
  MeshFrequency=1500Hz
  Meshing=BiFu
  Sym=x; 
  Dim=3D

// MeshFileAlias=M is an alias to a mesh-file
// which is exported by GMESH.
// Since all dimensions are in mm we use Scale=1mm.


MeshFile_Properties
  MeshFileAlias=M
  Scale=1mm


Subdomain_Properties "Interior"
 Subdomain=1
 ElType=Interior
  
Subdomain_Properties "Exterior"
 Subdomain=2
 ElType=Exterior
 
Subdomain_Properties "Vent"
 Subdomain=3
 ElType=Interior


// Helper element, which we use initially in order to identify Tags

off Elements "Check"
  MeshFileAlias=M
  101 Mesh  Include All

off Elements "Check Diaphragm Position"
  MeshFileAlias=M
  101 Mesh  Include 23


Elements "Box_a"
  SubDomain=2
  MeshFileAlias=M
  100 Mesh  Include 10 19 9 8 2

Elements "Box_i"
  SubDomain=1
  MeshFileAlias=M
  100 Mesh  Include  12 16 15 18 47

WallImpedance "Enclosure Damping"
  RefElements="Box_i"
  ImpType=Damping
  Value=0.01

Elements "Tunnel_a"
  SubDomain=1
  MeshFileAlias=M
  101 Mesh  Include 13 6 20 14
  
  
Elements "Tunnel_i"
  SubDomain=3
  MeshFileAlias=M
  EdgeLength=70mm
  101 Mesh  Include 7 5 4
  
WallImpedance "Vent Damping"
  RefElements="Tunnel_i"
  ImpType=Damping
  Value=0.1
  
  
Elements "Interface_a"
  MeshFileAlias=M
  Subdomain=2,3
  Color=Green 0.5
  EdgeLength=35mm
  101 Mesh  Include 26
  
Elements "Interface_i"
  Subdomain=1,3
  MeshFileAlias=M
  EdgeLength=35mm
  101 Mesh  Include 30
  

Diaphragm  "Front"
  Position= MeshFileAlias=M Include 23  RotateAxial=45  // Position by mesh-file plane #23
  DrvGroup=1001       // Driving group link to observation stage
  SubDomain=2         // Front side belongs to sub-domain 2
  EdgeLength=68mm       
  NoBaffle
  Simple=true         // Simple model
  Side=Front          // Creates elements for the front side of the diaphragm
  dD=340mm            // Diameter of cone
  tD1=70mm            // Inner depth of cone to base of dust cap
  dD1=100mm           // Diameter of dust cap
  hD1=30mm            // Height of dust cap
  // Ws=10mm          // Width of outer suspension
  hD2=85mm            // Height of total cone on the outside
  dVC=50mm            // Diameter of voice coil
  hVC=5mm             // Height of voice coil
  dM=200mm            // Diameter of magnet
  hM=30mm             // Height of magnet
  
Diaphragm  "Rear"
  RefDiaphragm="Front"
  DrvGroup=1002      // Driving group link to observation stage
  SubDomain=1        // Front side belongs to sub-domain 1
  Position= MeshFileAlias=M Include 23   RotateAxial=45  // Position by mesh-file plane #23
  Side=Rear          // Creates elements for the front side of the diaphragm
  t1=-12mm